import request from "@/utils/request";

const ReservoirAPI = {
  /** 新增商户信息*/
  add(data: any) {
    return request({
      url: `/admin/reservoir/add`,
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
  /** 商户列表*/
  list(data: any) {
    return request({
      url: "/admin/reservoir/page",
      method: "post",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
  /** 删除商户信息*/
  delItem(id: any) {
    return request({
      url: `/admin/reservoir/delete/${id}`,
      method: "DELETE",
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
  /** 修改商户信息*/
  update(data: any) {
    return request({
      url: "/admin/reservoir/update",
      method: "POST",
      data,
      headers: {
        "Content-Type": "application/json",
      },
    });
  },
};

export default ReservoirAPI;
